package com.car.service.Impl;

import com.car.entity.Citytable;
import com.car.mapper.CitytableMapper;
import com.car.service.CitytableService;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class CitytableServiceImpl implements CitytableService{

	@Autowired
	CitytableMapper citytableMapper;
	
	@Override
	public int deleteByPrimaryKey(Integer cityId) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int insert(Citytable record) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public Citytable selectByPrimaryKey(Integer cityId) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<Citytable> selectAll(String sId) {
		// TODO Auto-generated method stub
		System.out.println(citytableMapper.selectAll(sId));
		return citytableMapper.selectAll(sId);
	}

	@Override
	public int updateByPrimaryKey(Citytable record) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public Citytable selectByCityName(String cityName) {
		// TODO Auto-generated method stub
		return citytableMapper.selectByCityName(cityName);
	}

	@Override
	public List<Citytable> selectAllToShow() {
		// TODO Auto-generated method stub
		return citytableMapper.selectAllToShow();
	}
}